import request from '@/utils/request'

// 首页数据方法
export function getMain(projectCode) {
  return request({
    url: '/app/energy/api/main/'+ projectCode,
    method: 'get',
  })
}
export function getAlarm(projectCode) {
  return request({
    url: '/app/energy/api/alarm/'+ projectCode,
    method: 'get',
  })
}

export function getStatisticalData(projectCode) {
  return request({
    url: '/app/energy/api/data/'+ projectCode,
    method: 'get',
  })
}
export function getRoomData(query){
  return request({
    url: '/app/energy/api/detail/rooms',
    method: 'get',
    params:query
  })
}
